@import 'open-color';

:root {
  --border-radius: 6px;
  --color-primary: $oc-cyan-6;
  --color-background: var(--color-primary);
  --color-background-active: rgb(39, 148, 235);
  --color-border: rgb(22, 110, 170);
}

*,
*:after,
*:before {
  box-sizing: border-box;
}

//body {
//  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
//}
//
//.demo-container {
//  padding: 40px;
//  width: 100%;
//
//  h1 {
//    border-bottom: 1px solid #ccc;
//    color: var(--color-primary);
//    margin-bottom: 40px;
//    padding-bottom: 40px;
//    text-align: center;
//  }
//
//  h2 {
//    color: #ccc;
//  }
//}

.react-sanfona {
  border-radius: 3px;
  margin-bottom: 70px;

  .react-sanfona-item-title {
    background-color: var(--color-background);
    border-top: 1px solid #ccc;
    color: #fff;
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    line-height: 1;
    display: block;

    text-transform: none;
    transition: background-color .3s;
  }

  .react-sanfona-item {
    .fa-angle-double-left:before, .fa-angle-double-down:before {
      float: right;
      margin-right: 8px;
    }

    &:first-child {
      .react-sanfona-item-title {
        border-top: none;
      }
    }
  }

  .react-sanfona-item-expanded .react-sanfona-item-title {
    background-color: var(--color-primary);
    color: #fff;

    .title-done-btn {
      display: inline-block;
      float: right;
    }
  }

  .react-sanfona-item-body-wrapper {
    color: #666;
    padding: 20px 12px;
    position: relative;
  }

  .react-sanfona-item-body-wrapper:hover .tooltip {
    opacity: 1;
  }

  img {
    display: block;
    max-width: 100%;
  }

  .title-done-btn {
    display: none;
  }

  .tooltip {
    background-color: #000;
    border-radius: 3px;
    color: #fff;
    left: 10px;
    opacity: 0;
    padding: 10px;
    position: absolute;
    transition: opacity .3s;
  }

  .togglers {
    align-items: center;
    display: flex;
    margin-bottom: 90px;
    margin-top: -40px;
  }

  .togglers button {
    margin-right: 10px;
  }

  .togglers button:last-child {
    margin-right: 0;
  }

  .button {
    background: linear-gradient(to bottom, #3cacfc 0%, #189af8 100%);
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    box-shadow: 0 0 2px var(--color-border),
    inset 0 1px 0 0 rgba(255, 255, 255, .5);
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    min-width: 140px;
    padding: 12px;
    position: relative;
    text-shadow: 1px 1px 2px var(--color-border);
  }

  .button:focus,
  .button.focus {
    outline: none;
  }

  .button:focus::before,
  .button.focus::before {
    border-radius: var(--border-radius);
    box-shadow: 0 0 1px 2px #94d0ff;
    content: '';
    height: calc(100% + 6px);
    left: -3px;
    position: absolute;
    top: -3px;
    width: calc(100% + 6px);
  }

  .button:active,
  .button.active {
    background: linear-gradient(to bottom, #3ca0eb 0%, #168be1 100%);
    background-color: var(--color-background-active);
    box-shadow: 0 0 2px var(--color-border);
  }

  .node-editor-button{
    display:none;
  }

}


